home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 9 / Night Owl CD-ROM (NOPV9) (Night Owl Publisher) (1993).ISO / 015a / memsz160.zip / ESPA¥OL.CMD < prev    next >
OS/2 REXX Batch file  |  1993-03-03  |  2KB  |  55 lines

  1. /* ESPAÑOL.CMD: Instalación de MEMSIZE en español */
  2.  
  3. /* Cargar REXXUTIL */
  4. Call RxFuncAdd 'SysLoadFuncs', 'REXXUTIL', 'SysLoadFuncs';
  5. Call SysLoadFuncs
  6.  
  7. Call SysCls
  8. Say 'Instalación de MEMSIZE...';
  9. Say '';
  10.  
  11. Say 'Por favor, escriba el nombre completo del directorio en el';
  12. Say '  que quiere instalar el programa MEMSIZE (por defecto es C:\OS2\APPS): ';
  13. Pull Directory
  14. If Directory = "" Then Directory='C:\OS2\APPS'
  15. Result = SysFileTree(Directory, 'Dirs', 'D')
  16. If Dirs.0 = 0 Then Call SysMkDir Directory;
  17.  
  18. Say "¿Quiere instalarlo de forma que se ejecute automáticamente al arrancar? (S/N)";
  19. Pull YesNo
  20. If YesNo = "S" Then
  21.   Do
  22.   Folder='<WP_START>'
  23.   Say "El objeto se copiará en la carpeta Inicio.";
  24.   End
  25. Else
  26.   Do
  27.   Folder='<WP_DESKTOP>'
  28.   Say "El objeto se copiará en el Escritorio.";
  29.   End
  30.  
  31. Say 'Copiando MEMSIZE al directorio ' Directory '...';
  32. Say '';
  33. Language='ESPAÑOL'
  34. Copy MEMSIZE.EXE Directory
  35. Copy Language".DLL" Directory"\MEMSIZE.DLL"
  36. Copy Language".HLP" Directory"\MEMSIZE.HLP"
  37.  
  38. Say "Creando el objeto del programa...";
  39. Say ''; 
  40.  
  41. Type='WPProgram'
  42. Title='Recursos del Sistema'
  43. Parms='MINWIN=DESKTOP;PROGTYPE=PM;EXENAME='Directory'\MEMSIZE.EXE;STARTUPDIR='Directory';OBJECTID=<MEMSIZE>;NOPRINT=YES'
  44.  
  45. Result=SysCreateObject(Type,Title,Folder,Parms,'ReplaceIfExists');
  46.  
  47. If Result=1 Then 
  48.   Call charout ,"...   El objeto se ha creado.  Fin"
  49. Else             
  50.   Call charout ,"...   ¡No se ha podido crear el objeto! Estado final=" Result
  51.  
  52. Exit
  53.  
  54. 
  55.